<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>100以内的奇数和偶数的和</title>
		<script type="text/javascript">
			var odd = 0;
			var even = 0;
			for(var i = 1;i <= 100;i++) {
				if(i % 2 == 0) {
					even += i;
				}else {
					odd += i;
				}
			}
			
			console.log('奇数的和为',odd);
			console.log('偶数和为:',even)
		</script>
	</head>
	<body>
	</body>
</html>
